package com.pubinfo.passbook.api.controller.bill;

import com.alibaba.fastjson.JSONObject;
import com.pubinfo.passbook.common.model.bo.witeoff.EnvironmentalOrGroupMembershipDuesDTO;

import com.pubinfo.passbook.common.model.bo.witeoff.MedicineOnJobOrRetireBO;
import com.pubinfo.passbook.common.model.vo.base.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "witeoff")
@Api(tags = "报账单")
@Slf4j
public class WiteoffController {
  
  @PostMapping("save/medicineOnJob")
  @ApiOperation(value = "在职及供属医药费报账")
  public JsonResult<String> medicineOnJob(@RequestBody MedicineOnJobOrRetireBO jobDTO) {
    log.info(JSONObject.toJSONString(jobDTO));
    return JsonResult.success("成功");
  }
  
  @PostMapping("save/medicineRetire")
  @ApiOperation(value = "退休员工医药费报账")
  public JsonResult<String> medicineRetire(@RequestBody MedicineOnJobOrRetireBO retireDTO) {
    log.info(JSONObject.toJSONString(retireDTO));
    return JsonResult.success("成功");
  }
  
  @PostMapping("save/groupMembershipDues")
  @ApiOperation(value = "社会团体会费报账")
  public JsonResult<String> groupMembershipDues(@RequestBody EnvironmentalOrGroupMembershipDuesDTO duesDTO) {
    log.info(JSONObject.toJSONString(duesDTO));
    return JsonResult.success("成功");
  }
  
  @PostMapping("save/environmental")
  @ApiOperation(value = "环保费报账")
  public JsonResult<String> environmental(@RequestBody EnvironmentalOrGroupMembershipDuesDTO environmentalDTO) {
    log.info(JSONObject.toJSONString(environmentalDTO));
    return JsonResult.success("成功");
  }
}
